<!--{template user/header}-->
<table cellspacing="1" cellpadding="0" border="0" width="100%" style="background:#ccc;border-spacing:1px;border-collapse:separate;">
	<tr style="text-align:center" height="38">
		<!--{loop $time_vals $tkey $tval}-->
		<td style="background:#{if $time_type == $tkey}fff{else}eee{/if};"><a href="site.php?action=statistic&type=charts&aid=$aid&time_type=$tkey">$tval['name']</a></td>
		<!--{/loop}-->
		<td style="background:#eee;"><a href="site.php?action=statistic&type=list&aid=$aid">列表记录</a></td>
	</tr>
</table>
<div id="chartBox" style="height:500px;">
	
</div>
<script type="text/javascript" src="{PUBLIC_PATH}charts/FusionCharts.js"></script>
<script type="text/javascript" src="{PUBLIC_PATH}charts/charts.js"></script>
<script type="text/javascript">
	<!--{if $time_type == '3m' || $time_type == '6m'}-->
	var chart = new FusionCharts("{PUBLIC_PATH}charts/ZoomLine.swf","test","100%","500");
	<!--{else}-->
	var chart = new FusionCharts("{PUBLIC_PATH}charts/Line.swf","test","100%","500");
	<!--{/if}-->
	chart.setDataURL("site.php?action=getstatistic%26aid=$aid%26time_type=$time_type");
	setLangConfig(chart);
	chart.render("chartBox");
</script>
<!--{template user/footer}-->